<?php

/**
 * Description of GroupService
 *
 * @author gun
 */

class Admin_Model_GroupService extends Admin_Model_BaseService {
    protected $daoClass = 'Admin_Model_DbTable_Group';
    
    public function getGroup($where = array()) {
        $data = $this->getDao()->getGroup($where);
        
        return $data;
    }
    
    public function getGroupById($id = "") {
        return $this->getDao()->getGroupById($id);
    }
    
    public function getGroupByName($name = "") {
        return $this->getDao()->getGroupByName($name);
    }
    
    public function getGroupID() {
        return $this->getDao()->getGroupID();
    }
    
    public function countRows($where = '') {
        return $this->getDao()->countRows($where);
    }
    
    public function doUpdate($data = array(), $where = '') {
        return $this->getDao()->doUpdate($data, $where);
    }
    
    public function doSave($data = array()) {
        return $this->getDao()->doSave($data);
    }
    
    public function doDelete($where = '') {
        return $this->getDao()->doDelete($where);
    }
}
